package com.mcjtf.prefix.api.event;

import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

@Getter
public class PrefixChangeEvent extends Event {
    private static final HandlerList handlers = new HandlerList();
    private final Player player;
    private final String type;
    private final String prefix;

    public PrefixChangeEvent(Player player, String type, String prefix) {
        this.player = player;
        this.type = type;
        this.prefix = prefix;
    }

    @Override
    public HandlerList getHandlers() {
        return handlers;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }
}
